<?php

use Illuminate\Database\Seeder;

class Friend_Link_Seeder extends Seeder
{
    /**
     * @author mais <[<380354618@qq.com>]>
     * 友情链接表 填充数据
     *
     * @return void
     */
    public function run()
    {
        DB::table('friend_link')->insert([
            'name' => '百度',
            'http_address' => 'https://www.baidu.com/',
            'content' => '这是百度网站的简述',
            'state' => 0,
            'created_at' => date('y-m-d h:i:s',time()),
            'updated_at' => date('y-m-d h:i:s',time()),
        ]);

        DB::table('friend_link')->insert([
            'name' => 'qq',
            'http_address' => 'https://www.qq.com/',
            'content' => 'qq',
            'state' => 0,
            'created_at' => date('y-m-d h:i:s',time()),
            'updated_at' => date('y-m-d h:i:s',time()),
        ]);

        DB::table('friend_link')->insert([
            'name' => '麦志建的网站',
            'http_address' => 'https://www.maizhijian.com/',
            'content' => '麦志建的网站',
            'state' => 0,
            'created_at' => date('y-m-d h:i:s',time()),
            'updated_at' => date('y-m-d h:i:s',time()),
        ]);
    }
}
